#ifndef TOPMENUBTNS_H
#define TOPMENUBTNS_H

#include <QWidget>
#include <QPair>
#include <QList>
#include <QString>

namespace Ui {
class TopMenuBtns;
}

class TopMenuBtns : public QWidget
{
    Q_OBJECT

public:
    explicit TopMenuBtns(QWidget *parent = nullptr);
    ~TopMenuBtns();

    void setMenu(QStringList str);

    void setMenuAndData(QList<QPair<QString,QString>>    data);

    void clear();

signals:
    void clicked(QString str);

private:
    Ui::TopMenuBtns *ui;
};

#endif // TOPMENUBTNS_H
